/* components.css - 组件样式 */
/* 包括书签卡片、搜索栏等具体组件的样式 */

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 40px;
    width: 100%;
}

.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px 15px;
    font-size: 16px;
    outline: none;
}

.search-button {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 15px;
    font-size: 18px;
}

.search-button:hover {
    color: var(--accent-color);
}

.bookmark-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: block;
}

.bookmark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--hover-color);
}

.bookmark-category {
    margin-bottom: 40px;
}

.bookmark-category h2 {
    color: var(--accent-color);
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.bookmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    width: 95%;
    max-width: 1600px;
}

.bookmark-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bookmark-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bookmark-card-content h3 {
    font-size: 16px;
    margin: 0;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.bookmark-card p {
    font-size: 14px;
    color: #aaa;
    margin: 0 0 10px;
    line-height: 1.4;
}

.bookmark-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    /* 缩放以适应 */
    object-fit: contain;
}

.bookmark-card:hover .bookmark-card-content h3 {
    color: #ffffff;
}

.bookmark-description {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
